{include file="admin/body/forms/tabs.htm"}
{ext->set_forms_visible id=$smarty.get.form_id}
<table width="100%" cellpadding="0" cellspacing="0" style="border:1px solid #C4CDD2; border-top:0px; background:#DBE1E5; padding:0px 5px 5px 5px">
	<tr>
		<td>
		
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td height="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
			</tr>
			<tr>
				<td height="1" bgcolor="#ADB9BF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			</tr>
			<tr>
				<td height="1" bgcolor="#E4E9EC"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			</tr>
			<tr>
				<td height="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
			</tr>
		</table>		
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td height="1" bgcolor="#C4CDD2"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
			</tr>			
		</table>
		<table width="100%" cellpadding="0" cellspacing="0" style="border:1px solid #C4CDD2; border-top:0px;">
			<tr>
				<td width="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				<td style="border:5px solid white; border-bottom:0px">
					<table width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td style="border:1px solid #8CA2B1">
							<table width="100%" cellpadding="0" cellspacing="0">
								<tr>
									<td bgcolor="#FFFFFF" style="padding:10px; line-height:150% ">
									<table width="100%" cellpadding="0" cellspacing="0">
										<tr>
											<td>
												{ext->get_forms_data assign="elements" id=$smarty.get.form_id}
												{t t='Formos pavadinimas'} - <strong>{$elements.parent_info.name}</strong>
											</td>
											<td align="right">
												<form name="status" action="index.php" enctype="multipart/form-data" method="post">
													<input name="admin" type="hidden" value="1">
													<input name="mod" type="hidden" value="forms">
													<input name="act" type="hidden" value="change_status">
													<input name="parent" type="hidden" value="{$smarty.get.form_id}">
													<input name="referer" type="hidden" value="{ext->get_referer}">
													<table cellpadding="0" cellspacing="0">
													<tr>
														<td>
															<select name="depth" style="width:50px;">
																<option value=0 style="background-color:#FFFFFF" {if $elements.parent_info.depth == '1'}selected{/if}>&nbsp;</option>
																<option value=1 style="background-color:#366F69; border-color:#1E4F4B" {if $elements.parent_info.depth == '1'}selected{/if}>&nbsp;</option>
																<option value=2 style="background-color:#DF0400; border-color:#BC0501" {if $elements.parent_info.depth == '2'}selected{/if}>&nbsp;</option>
																<option value=3 style="background-color:#FDF01F; border-color:#CAC01E" {if $elements.parent_info.depth == '3'}selected{/if}>&nbsp;</option>
															</select>
														</td>
														<td width="20">&nbsp;</td>
														<td valign="middle">
															<a href="#" onClick="status.submit()">{t t="Išsaugoti buseną"}</a>
														</td>
													</tr>
													</table>
												</form>
											</td>
										</tr>
									</table>
									<br><br>
									{include file="admin/body/forms/selector.html"}
									</td>		
								</tr>
							</table>
						</td>		
					</tr>
					</table>
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td bgcolor="#FFFFFF" height="5">						
						</td>		
					</tr>
				</table>
				</td>	
				<td width="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			</tr>
		</table>
		</td>		
	</tr>	
</table>

{if !$first}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="20"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>
{/if}
